package com.dingding.common.core.beans;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ClassName: Stageprice 
 * @Description: 计价规格
 * @author lijinchao
 * @date 2015-11-23 下午03:10:33 
 * @version
 */
@SuppressWarnings("serial")
public class Stageprice implements Serializable, Comparable<Stageprice> {

	private String spId; // 主键
	private Integer stage; // 阶段
	private BigDecimal startRange; // 每个阶段对应一个起点终点距离范围
	private BigDecimal endRange;
	private BigDecimal price; // 每个阶段对应的价位：１阶段为该阶段固定钱数，２阶段开始为每ＫＭ的单价
	private Integer status; // 状态（是否有效） 1：有效 2：无效
	private Integer cityNo; // 城市编码

	public String getSpId() {
		return spId;
	}

	public void setSpId(String spId) {
		this.spId = spId;
	}

	public Integer getStage() {
		return stage;
	}

	public void setStage(Integer stage) {
		this.stage = stage;
	}

	public BigDecimal getStartRange() {
		return startRange;
	}

	public void setStartRange(BigDecimal startRange) {
		this.startRange = startRange;
	}

	public BigDecimal getEndRange() {
		return endRange;
	}

	public void setEndRange(BigDecimal endRange) {
		this.endRange = endRange;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCityNo() {
		return cityNo;
	}

	public void setCityNo(Integer cityNo) {
		this.cityNo = cityNo;
	}

	@Override
	public int compareTo(Stageprice stageprice) {
		return this.stage.compareTo(stageprice.getStage());
	}
}
